<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/common.js"></script>
    <style>

        h1{
            -webkit-transition: all .1s;
        }

    </style>

</head>
<body>
<h1 id="tt">中文文字效果变色</h1>
<script>
    function c(){
        //document.bgColor = getRandomColor();
        document.getElementById('tt').style.color = getRandomColor();
    }
    c();
    setInterval(c,100);
</script>
</body>
</html>